package com.work.straighttalk.ui;

import android.text.Editable;
import android.text.TextWatcher;
import android.widget.Toast;

import com.work.straighttalk.app.StraightTalk;

/**
 * Created by dllo on 16/3/12.
 */
public class ChatEditTextWatcher implements TextWatcher {
    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {
        Toast.makeText(StraightTalk.applicationContext, "before :" + "s+:" + s + " start+: " + start + "count+: " + count, Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {
        Toast.makeText(StraightTalk.applicationContext, "on :" + "s+:" + s + " start+: " + start + "count+: " + count, Toast.LENGTH_SHORT).show();
    }

    @Override
    public void afterTextChanged(Editable s) {

    }
}
